package edu.friday.model;

import edu.friday.model.vo.SysUserVO;
import lombok.Data;

import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
@Entity
@Table(name = "sys_user_role",schema = "friday")
@IdClass(SysUserRolePK.class)
public class SysUserRole {
    @Id
    @NotBlank(message = "用户ID不能为空")
    @Column(name = "user_id")
    private Long userId;

    @Id
    @NotBlank(message = "角色ID不能为空")
    @Column(name = "role_id")
    private Long roleId;


}
